package com.agriculture.competition.mapper;

import com.agriculture.competition.domain.JaCompetitionTeacher;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 比赛对应的评分老师和最终打分老师Mapper接口
 *
 * @author agriculture
 * @date 2025-03-04
 */
@Mapper
public interface JaCompetitionTeacherMapper {

    /**
     * 查询比赛对应的评分老师和最终打分老师
     *
     * @param id 比赛对应的评分老师和最终打分老师主键
     * @return 比赛对应的评分老师和最终打分老师
     */
    public JaCompetitionTeacher selectJaCompetitionTeacherById(Long id);


    /**
     * 查询比赛对应的评分老师和最终打分老师列表
     *
     * @param jaCompetitionTeacher 比赛对应的评分老师和最终打分老师
     * @return 比赛对应的评分老师和最终打分老师集合
     */
    public List<JaCompetitionTeacher> selectJaCompetitionTeacherList(JaCompetitionTeacher jaCompetitionTeacher);

    /**
     * 新增比赛对应的评分老师和最终打分老师
     *
     * @param jaCompetitionTeacher 比赛对应的评分老师和最终打分老师
     * @return 结果
     */
    public int insertJaCompetitionTeacher(JaCompetitionTeacher jaCompetitionTeacher);

    /**
     * 修改比赛对应的评分老师和最终打分老师
     *
     * @param jaCompetitionTeacher 比赛对应的评分老师和最终打分老师
     * @return 结果
     */
    public int updateJaCompetitionTeacher(JaCompetitionTeacher jaCompetitionTeacher);

    /**
     * 删除比赛对应的评分老师和最终打分老师
     *
     * @param id 比赛对应的评分老师和最终打分老师主键
     * @return 结果
     */
    public int deleteJaCompetitionTeacherById(Long id);

    /**
     * 批量删除比赛对应的评分老师和最终打分老师
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJaCompetitionTeacherByIds(Long[] ids);

    int deleteJaCompetitionTeacherByCompetitionId(@Param("competitionId") Long competitionId);
}
